Func _Mouse_DrawCursor ()
	If $GAME_Cursor = 1 Then
		Local $iCursorPos = _Mouse_GetPos ()
		_GDIPlus_GraphicsDrawImageRectRect($hBuffer, $hCursorImage, 13, 16, 19, 19, $iCursorPos[0], $iCursorPos[1], 22, 22);draws the cursor pic at the position of your cursor

		;_GDIPlus_GraphicsFillRect($hBuffer, $iCursorPos[0], $iCursorPos[1], 5, 5);enable if you want to see a blck point at the point were the cursor is
;~ 		ToolTip($iCursorPos[0] & "|" &$iCursorPos[1]);just in use for development
	EndIf
EndFunc

Func _Mouse_GetPos ()
	Return GUIGetCursorInfo($hGUI);gets cursor positon (used in -> _Mouse_DrawCursor)
EndFunc

Func _Mousegetpos($sString)
	$iMousePos = GUIGetCursorInfo($hGUI)
	If $sString = "x" Then
		Return $iMousePos[0]
	ElseIf $sString = "y" Then
		Return $iMousePos[1]
	EndIf
EndFunc   ;==>_Mousegetpos


Func _Mouse_CheckClickedArea($iX, $iY, $iW, $iH)
	If _Mousegetpos("x") >= $iX And _Mousegetpos("x") <= $iX + $iW And _Mousegetpos("y") >= $iY And _Mousegetpos("y") <= $iY + $iH And _IsPressed(01) And WinActive("WISH") Then
		Return True
	Else
		Return False
	EndIf
EndFunc